package edu.ccit.shudong.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import edu.ccit.shudong.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Suting Luo
 * @since 2024-06-14
 */
public interface ICommentService extends IService<Comment> {

    List<Comment> findListByPostId(long postId);
    Comment addOne(long userId, long postId, String content);
    Comment findById(long id);
    List<Comment> findListByUserId(long userId);

    List<Comment> findByUserId(long userId);
}
